package com.zzx.action.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zzx.api.IDemoService;
import com.zzx.util.PropertiesUtil;

/**
 * 页面请求控制层。
 * @author zzx
 *
 */
@Controller
public class PageController {
	
	@Autowired
	private IDemoService demoPageService;
	
	/**
	 * 测试方法。
	 * @return
	 */
	@RequestMapping("/test")
	public String queryHello() {
		System.err.println("*******进入action start******");
		String str = PropertiesUtil.getString("FTP_HOST_IP");
		String str2 = demoPageService.rtnTest("页面传入");
		System.err.println("*******进入action end******"+str);
		return "index";
	}
}
